//
//  LWServiceViewController.m
//  LWShopItem
//
//  Created by mac on 17/6/1.
//  Copyright © 2017年 LWShop.com. All rights reserved.
//

#import "LWServiceViewController.h"
#import <WebKit/WebKit.h>

@interface LWServiceViewController ()

@property (strong,nonatomic)  WKWebView     *webView;

@end

@implementation LWServiceViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    self.title = @"客服中心";
    self.view.backgroundColor = [UIColor whiteColor];
    
    WKWebView *webView = [[WKWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    
    
    
    // 2.创建URL
    NSURL *url = [NSURL URLWithString:@"http://shop.sdlinwang.com/service/"];
    // 3.创建Request
    NSURLRequest *request =[NSURLRequest requestWithURL:url];
    // 4.加载网页
    [webView loadRequest:request];
    // 5.最后将webView添加到界面
    [self.view addSubview:webView];
    
    self.webView = webView;
    
    
    UIBarButtonItem *backBtnItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"返回"] style:UIBarButtonItemStylePlain target:self action:@selector(popClick)];
    self.navigationItem.leftBarButtonItem = backBtnItem;

    
    
}
#pragma MARK- FANHUI 
- (void)popClick
{
    [self.navigationController popViewControllerAnimated:YES];
}


@end
